package com.zw.blog.dao;

import com.zw.blog.po.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {

    //通过用户名密码查找用户
    User findByUsernameAndPassword(String username, String password);


}
